// 开发环境配置
import packageInfo from '@/package.json';

const { version } = packageInfo;
export let baseUrl;
if (process.env.NODE_ENV === 'development') {
  baseUrl = 'https://scc.jiangyunxox.com/'
} else {
  baseUrl = 'https://scc.jiangyunxox.com/';
}
if (typeof baseUrl === 'undefined') {
  console.error('请检查.env配置文件是否存在');
} else {
  console.log(`[Shopro ${version}]  https://www.sheepjs.com/ , '+++'`);
}

export const apiPath = '/addons/shopro/';

export const staticUrl = '';

export default {
  baseUrl,
  apiPath,
  staticUrl,
};
